#ifndef BIBITEM_H
#define BIBITEM_H
#include <QMap>
#include <QString>


class bibItem
{
public:
    bibItem();
    bibItem(QString const &);
    virtual ~bibItem();

    QMap<QString, QString> content;
    QString type;
    QString citationKey;
    QString generateCitationKey;

    void readContent(QString const &);
    QString getKey(QString const & s, int &from);
    QString getValue(QString const & s, int &from);
    QString getCitationKey(QString const &s);
    QString getType(QString const &s);

    QString toString();
    QString exportBib();

    QString operator[] (QString const & entry);
};

#endif // BIBITEM_H
